import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { ReactiveFormsModule } from '@angular/forms';

/** 路由 */
import { RouterModule } from '@angular/router';
import { appRoutes } from './app.routes';

/** 组件 */
import { AppComponent } from './app.component';


/** 服务 */
import { IfLoginService } from './shared/services/public/if-login/if-login.service';
import { RouterCanService } from './shared/services/public/router-can/router-can.service';
import { ApisService } from './shared/services/requests/apis.service';
import { RequestsService } from './shared/services/requests/requests.service';
import { RegexsService } from './shared/services/public/regexs/regexs.service';
import { ValidatorsService } from './shared/services/public/validators/validators.service';
import { EventEmitterService } from './shared/services/public/event-emitter/event-emitter.service';


/** 公共模块 */
/*import { SharedComponentsModule } from "./shared/components/shared.components.module";*/

@NgModule({
  declarations:
    [
    AppComponent
    ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    HttpClientModule,
    RouterModule.forRoot(appRoutes),  // 路由
    ReactiveFormsModule
  ],
  providers: [
    IfLoginService,
    RouterCanService,
    ApisService,
    RequestsService,
    RegexsService,
    ValidatorsService,
    EventEmitterService
  ],
  bootstrap: [AppComponent],
  entryComponents: []
})
export class AppModule {
}
